package com.example.design_pattern.strategy;


import com.example.design_pattern.strategy.fly.FlyWithWings;
import com.example.design_pattern.strategy.quack.Quack;

/**
 * Created by SQ_BXZ on 2019-02-15.
 */

public class MallardDuck extends Duck{

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }


    public void display() {
        System.out.println("I'm a real mallard duck");
    }
}
